/*import java.util.Scanner;

class Dog{
    String name;
    int age;

    public Dog(){
        this.name = "wangcai";
        this.age = 18;

    }


    public void print(){
        System.out.println("小狗名字叫"+this.name+    ",今年"+this.age+"岁!!");
    }
}
class Date{
    public int x;
    public int y;

    public Date(int x, int y) {
        this.x = x;
        this.y = y;
    }
    public int getx(){
        return x;
    }
    public int gety(){
        return y;
    }
}
class Dat{
    public int year;
    public int month;
    public int day;
    public void setday(int year,int month,int day){
        this.year = year;
        this.month = month;//this代表当前对象的引用
        this.day = day;
    }
    public void print(){
        System.out.println(year+"年 ，"+month+"月" + day+" 日");
    }
}
public class Test {
    public static void main(String[] args) {
        int a;
        a = 10;
        System.out.println(a);
    }
    public static void main3(String[] args) {
        Dat da1 = new Dat();
        Dat da2 = new Dat();
        Dat da3 = new Dat();
        da1.setday(2001,10,3);
        da2.setday(2003,10,6);
        da3.setday(2008,5,6);
        da1.print();
        da2.print();
        da3.print();

    }
    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Date date = new Date(x,y);
            System.out.println(date.getx()+date.gety());
        }
    }
    public static void main1(String[] args) {
        Dog dog = new Dog();
        dog.print();
    }
}*/
/*class Date {
    int year;
    int month;
    int day;

    public Date() {
        this(2000,56,23);
        this.year = year;
        this.month = month;
        this.day = day;
        System.out.println("方法被调用了");
    }
    public Date(int year,int month,int day){

        this.year = 2011;
        this.month = 5;
        this.day = 3;
        System.out.println("调用不带参数的构造方法");
    }

    public void print() {
        System.out.println(year + "-" + month + "-" + day);
    }
}
class Test{
    public static void main(String[] args) {
        Date data1 = new Date(2001,10,06);
        Date data2 = new Date();
        data1.print();
        data2.print();

        }
    }*/

/*class Date{
    class Data{
        public int year;
        public int month = 10;
        public int day;

        public Data(){
            this.year = year;
            this.month = month;
            this.day = day;
        }
        public void print(int year,int month,int day){
            System.out.println(this.year);
            System.out.println(this.month);
            System.out.println(this.day);
        }
    }
    public static void main(String[] args) {
        Data date = new Data(2023,10,23);


    }
}
